package com.esun.payment_api.service;

import com.esun.common.api.CommonResult;
import com.esun.common.bean.PageRequest;
import com.esun.payment_api.bean.UserBean;
import com.esun.payment_api.domain.User;
import com.esun.payment_api.security.AjaxResult;
import com.esun.payment_api.security.model.LoginBody;
import com.esun.payment_api.security.model.LoginByOpenIdBody;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
public interface LoginService {
    CommonResult<UserBean> loginByPassword(LoginBody loginBody);

    CommonResult<UserBean> loginByOpenId(LoginByOpenIdBody loginByOpenIdBody);

    User getUserByUsername(PageRequest pageRequest) throws Exception;

    CommonResult registerTest(String username, String password);

    String getIpAddress();
}
